const path = require('path')
const HtmlWebpackPlugin= require('html-webpack-plugin')
module.exports = {
  mode: "none",
  entry: "./src/index.js",
  output: {
    filename: "bundle.js",
    path: path.join(__dirname, "dist")
  },
  plugins:[
    // 生成 index.html
    new HtmlWebpackPlugin({
      title:'标题',
      template:'./src/index.template.html'
    }),
    // 生成额外的 about.html 页面
    new HtmlWebpackPlugin({
      filename:'about.html', // 默认是 index.html
    })
  ]
}